<!-- qa_pair_update.html -->
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>更新问答</title>
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>
    <header>
        <h1>更新问答</h1>
    </header>
    <form method="POST" action="{% url 'qa_pair_update' qa_pair.id %}">
        {% csrf_token %}
        <div>
            <label for="question">问题:</label>
            <textarea id="question" name="question">{{ qa_pair.question }}</textarea>
        </div>
        <div>
            <label for="answer">答案:</label>
            <textarea id="answer" name="answer">{{ qa_pair.answer }}</textarea>
        </div>
        <button type="submit">提交更新</button>
    </form>
    <a href="{% url 'qa_pair_list' scenic_spot_id %}">返回问答列表</a>
</body>
</html>
